package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 虚拟币表流水表
 * </p>
 *
 * @author chenxuebin
 * @since 2019-02-22
 */
@TableName("t_xnbi_flow")
public class XnbiFlow extends Model<XnbiFlow> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 流水号
     */
	private String sn;
    /**
     * 积分数&
     */
	private BigDecimal num;
    /**
     * 获取类型@1：注册；2：兑换；3：分享；4：抵扣；5：签到；6：赠送；7：购物；8：过期；9：充值；10：退款；11：获赠积分；13：做任务
     */
	private Integer jftype;
    /**
     * #收支方式@1：收入；-1：支出
     */
	private Integer iotype;
    /**
     * 备注
     */
	private String remark;
    /**
     * 是否确认
     */
	@TableField("is_confirm")
	private Integer isConfirm;
    /**
     * 确认时间
     */
	@TableField("confirm_date")
	private Date confirmDate;
    /**
     * 生效起始时间
     */
	@TableField("date_start")
	private Date dateStart;
    /**
     * 生效截止时间
     */
	@TableField("date_end")
	private Date dateEnd;

	/**
	 * 返佣入账类型@1：支付成功后；2：确认收货|扫码核销后；3：发货15天后到账
	 */
	@TableField("fantime_type")
	private Integer fantimeType;

    /**
     * 有效状态&
     */
	private Integer state;
	private Long ywid;

	private Long uid;
	private Long mid;
	private Long mpid;
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public BigDecimal getNum() {
		return num;
	}

	public void setNum(BigDecimal num) {
		this.num = num;
	}

	public Integer getJftype() {
		return jftype;
	}

	public void setJftype(Integer jftype) {
		this.jftype = jftype;
	}

	public Integer getIotype() {
		return iotype;
	}

	public void setIotype(Integer iotype) {
		this.iotype = iotype;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIsConfirm() {
		return isConfirm;
	}

	public void setIsConfirm(Integer isConfirm) {
		this.isConfirm = isConfirm;
	}

	public Date getConfirmDate() {
		return confirmDate;
	}

	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}

	public Date getDateStart() {
		return dateStart;
	}

	public void setDateStart(Date dateStart) {
		this.dateStart = dateStart;
	}

	public Date getDateEnd() {
		return dateEnd;
	}

	public void setDateEnd(Date dateEnd) {
		this.dateEnd = dateEnd;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Integer getFantimeType() {
		return fantimeType;
	}

	public void setFantimeType(Integer fantimeType) {
		this.fantimeType = fantimeType;
	}

	public Long getYwid() {
		return ywid;
	}

	public void setYwid(Long ywid) {
		this.ywid = ywid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "XnbiFlow{" +
			"id=" + id +
			", sn=" + sn +
			", num=" + num +
			", jftype=" + jftype +
			", iotype=" + iotype +
			", remark=" + remark +
			", isConfirm=" + isConfirm +
			", confirmDate=" + confirmDate +
			", dateStart=" + dateStart +
			", dateEnd=" + dateEnd +
			", state=" + state +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
